<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    // Promise.reject 实例方法 返回一个 Promise 的 实例对象 其状态就是 reject
          const p = Promise.reject('asda')
          p.then(res => {console.log(res);})
          .catch(res => {console.log(res);})


    // Promise.resolve 实例方法 返回一个 Promise 的 实例对象 其状态就是 fulfilled
          const p1 = Promise.resolve('resolve')
          p1.then(res => {console.log(res);})
          .catch(res => {console.log(res);})


</script>